home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacPeople 2003 February 1
/
MACPEOPLE-2003-02-01.ISO.7z
/
MACPEOPLE-2003-02-01.ISO
/
ぶらりオンラインウェアの旅
/
おしゃべり漂流記
/
xGates
/
xGates 1.2 Source Code.sit
/
xGates 1.2 Source Code
/
structures.h
< prev
next >
Wrap
Text File
|
2002-12-08
|
3KB
|
147 lines
/*
xGates -- Stunningly entertaining action game for MacOS Classic / MacOS X
Copyright (C) 2002 Sveinbjorn Thordarson <paladeen@soth.zoneit.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
structures.h
*/
#pragma once
//////////////////////////////////////////////////////
//Stores info on Bills as game objects
//////////////////////////////////////////////////////
typedef struct
{
short xloc;
short yloc;
short state;
short target;
short points;
short countdown;
} BillStruct;
//////////////////////////////////////////////////////
//Name and number pairs
//////////////////////////////////////////////////////
typedef struct
{
Str255 name[16];
long score[16];
} HighScoreStruct;
//////////////////////////////////////////////////////
//Game preferences
//////////////////////////////////////////////////////
typedef struct
{
short appVersionMajor;
short appVersionMinor;
HighScoreStruct highscores;
//regular options
short music;
short sound;
short lastHighScore;
//geek options
short noChainsawJamming;
short fixedFrameRate;
short drawFPS;
} PrefsStruct;
//////////////////////////////////////////////////////
//Macs as game objects
//////////////////////////////////////////////////////
typedef struct
{
short type;
short state;
short xloc;
short yloc;
short countdown;
} MacStruct;
//////////////////////////////////////////////////////
//Levels, as game concepts
//////////////////////////////////////////////////////
typedef struct
{
short numOfMacs;
short numBills;
short billSpeed;
short maxBills;
short musicNum;
MacStruct macs[6];
} LevelStruct;
//////////////////////////////////////////////////////
//Data on player
//////////////////////////////////////////////////////
typedef struct
{
long score;
short place;
short dojs;
short totalBillsKilled;
short totalMacsSaved;
} PlayerStruct;
//////////////////////////////////////////////////////
//Department of Justice effects as game objects
//////////////////////////////////////////////////////
typedef struct
{
Rect rect;
short countdown;
} DojStruct;
//////////////////////////////////////////////////////
//Poofs as game objects
//////////////////////////////////////////////////////
typedef struct
{
short xloc;
short yloc;
short state;
short effect;
} PoofStruct;